<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@page import="java.util.*,com.card.setting.*" %>
<%@page import="com.card.match.*" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Template by www.lxkj.com</title>
<meta name="description" content="Administry - Admin Template by www.865171.cn" />
<meta name="keywords" content="Admin,Template" />
<!-- Favicons --> 
<link rel="shortcut icon" type="image/png" HREF="img/favicons/favicon.png"/>
<link rel="icon" type="image/png" HREF="img/favicons/favicon.png"/>
<link rel="apple-touch-icon" HREF="img/favicons/apple.png" />
<!-- Main Stylesheet --> 
<link rel="stylesheet" href="css/style.css" type="text/css" />
<!-- Your Custom Stylesheet --> 
<link rel="stylesheet" href="css/custom.css" type="text/css" />
<!--swfobject - needed only if you require <video> tag support for older browsers -->
<script type="text/javascript" SRC="js/swfobject.js"></script>
<!-- jQuery with plugins -->
<script type="text/javascript" SRC="js/jquery-1.4.2.min.js"></script>
<!-- Could be loaded remotely from Google CDN : <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> -->
<script type="text/javascript" SRC="js/jquery.ui.core.min.js"></script>
<script type="text/javascript" SRC="js/jquery.ui.widget.min.js"></script>
<script type="text/javascript" SRC="js/jquery.ui.tabs.min.js"></script>
<!-- jQuery tooltips -->
<script type="text/javascript" SRC="js/jquery.tipTip.min.js"></script>
<!-- Superfish navigation -->
<script type="text/javascript" SRC="js/jquery.superfish.min.js"></script>
<script type="text/javascript" SRC="js/jquery.supersubs.min.js"></script>
<!-- jQuery popup box -->
<script type="text/javascript" SRC="js/jquery.nyroModal.pack.js"></script>
<!-- jQuery form validation -->
<script type="text/javascript" SRC="js/jquery.validate_pack.js"></script>
<script type="text/javascript" SRC="js/jquery.dataTables.min.js"></script>

<link rel="stylesheet" type="text/css"
	href="css/jquery-ui-1.8.17.custom.css" />
<link type="text/css" href="css/jquery-ui-timepicker-addon.css"
	rel="stylesheet" />
<script type="text/javascript"
	src="js/timepack/jquery-ui-1.8.17.custom.min.js"></script>
<script type="text/javascript"
	src="js/timepack/jquery-ui-timepicker-addon.js"></script>
<script type="text/javascript"
	src="js/timepack/jquery-ui-timepicker-zh-CN.js"></script>
<script type="text/javascript">
	$(function () {
	    $(".ui_timepicker").datetimepicker({
	        showSecond: true,
	        timeFormat: 'hh:mm:ss',
	        stepHour: 1,
	        stepMinute: 1,
	        stepSecond: 1
	    });
	})
</script>
</head>
<body>

	<%
		
	%>
	<!-- Header -->
	<%
	List<MatchSetting> adviceList = MatchManager.getInstance().getSettingList();
	%>
<%@include file="head.jsp" %>
<div data-role="page" id="demo-page">
    <div data-role="header">
        <h1>比赛列表</h1> 
       
    </div>
    <div role="main" class="ui-content">
		<ul data-role="listview">
				<%
					for (int i = 0; i < adviceList.size(); i++) {
						MatchSetting advice = adviceList.get(i);
				%>
				<li><a href="matchdes.jsp?id=<%=advice.getId()%>">
						<h4>
							比赛名称：<%=advice.getName()%>
						</h4>
						<p>游戏名称：<%=advice.getGameName()%></p>
						<p>比赛人数：<%=advice.getNum()%></p>
						<p>参赛费：<%=advice.getEnterDiamond()%></p>
						<p>状态：<%=advice.getState()%></p>
				</a></li>
				<%
					}
				%>
			</ul>
    </div>
    
</div>
</body>
</html>